package com.glory.erp.auth.resources.service.impl;

import java.io.Serializable;
import java.util.List;

import com.glory.erp.auth.resources.service.ResourcesService;
import com.glory.erp.auth.resources.dao.ResourcesDao;
import com.glory.erp.auth.resources.bean.Resources;
import com.glory.erp.auth.base.BaseQueryModel;

public class ResourcesServiceImpl implements ResourcesService{
	
	private ResourcesDao resourcesDao;
	
	public void setResourcesDao(ResourcesDao resourcesDao) {
		this.resourcesDao = resourcesDao;
	}

	public void save(Resources resources) {
		resourcesDao.save(resources);
	}

	public void update(Resources resources) {
		resourcesDao.update(resources);
	}

	public void delete(Resources resources) {
		resourcesDao.delete(resources);
	}

	public Resources findById(Serializable uuid) {
		return resourcesDao.findById(uuid);
	}

	public List<Resources> findAll() {
		return resourcesDao.findAll();
	}

	public List<Resources> findAll(BaseQueryModel qm, Integer pageNum,Integer pageCount) {
		return resourcesDao.findAll(qm,pageNum,pageCount);
	}

	public Integer getCount(BaseQueryModel qm) {
		return resourcesDao.getCount(qm);
	}

	public List<Resources> findAllByEmp(Long uuid) {
		return resourcesDao.findAllByEmpUuid(uuid);
	}
}